package models.chat.messages;

import models.chat.engines.QueueMessage;
import play.db.jpa.Model;

import javax.persistence.Entity;

/**
 * @author Konovalov_Nik
 */
@Entity
public abstract class Message extends Model implements QueueMessage {
    public String text;
    public Long memberFrom;
    public Long timestamp;

    protected Message(String text, Long memberFrom) {
        this.text = text;
        this.memberFrom = memberFrom;
        this.timestamp = System.currentTimeMillis();
    }
}
